package org.n.shop.controller;

import lombok.AllArgsConstructor;
import org.n.shop.result.RestResult;
import org.n.shop.service.StoreService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/store")
@AllArgsConstructor
public class StoreController {
    private StoreService storeService;

    @RequestMapping("/id")
    public RestResult id(@RequestParam int id) {
        return storeService.selectById(id);
    }
}
